package cn.wind.xboot.core.utils;

import cn.wind.xboot.core.res.ApiException;
import com.alibaba.fastjson.JSONObject;

/**
 * <p>Title: CryptUtil</p>
 * <p>Description: TODO</p>
 *
 * @author xukk
 * @version 1.0
 * @date 2018/9/4
 */
public class CryptUtil {
    public static JSONObject decrypt(String data){
        try {
            return JSONObject.parseObject(AESUtil.CBC.decrypt(data));
        } catch (Exception e) {
           throw new ApiException("转换失败");
        }
    }
}
